#pragma once
#include <QWidget>

class VolumeMeter: public QWidget
{
public:
    VolumeMeter(QWidget *parent = 0);
    QSize sizeHint() const;
    void setVolume(float);
    float volume() const;
protected:
    void paintEvent(QPaintEvent *);
private:
    float volume_;
};
